﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace WCFCallbackService
{
   
    [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single,ConcurrencyMode=ConcurrencyMode.Multiple)]
    public class RequestService : WCFContracts.IRequestContract
    {
        void WCFContracts.IRequestContract.Request(string param)
        {
            Console.WriteLine("Get request: " + param);
            WCFContracts.IResponseContract response = System.ServiceModel.OperationContext.Current.GetCallbackChannel<WCFContracts.IResponseContract>();
            response.Response(param);
        }
    }
}
